<input type="hidden" name="{$data.attrs.name}" value="{$data.switch.no}">
<input type="checkbox" lay-skin="switch"
    {foreach $data.attrs as $key => $attr}
    {if $key != 'value'}
    {$key}="{$attr}"
    {/if}
    {/foreach}
    value="{$data.switch.yes}"
>